/**
 * Created by Laggo on 11/5/15.
 */
app.directive("jmnav", ['navService',function (navService) {
    return {
        restrict: 'E',
        templateUrl: 'www/html/directive/nav.html',
        replace: true,
        transclude: true,
        link: function (scope, ele, attr) {
            navService.navList().then(function(e){
                    scope.navList = e;
            })
        },
    }
}]);
